/*
 * wakeup
 */
#include "gkt_board.h"
#include "gkt_debug.h"
#include "gkt_wakeup.h"

static gkt_wakeup_src_e s_wakeup_src = GKT_WAKEUP_SRC_none;

gkt_wakeup_src_e gkt_wakeup_get_source(void)
{
	return s_wakeup_src;
}

void gkt_wakeup_set_source(gkt_wakeup_src_e wakeup_src)
{
	gkt_info("wakeup_set_source: %u\n", wakeup_src);

	if (wakeup_src < GKT_WAKEUP_SRC_MAX) {
		if (s_wakeup_src != GKT_WAKEUP_SRC_none) {
			gkt_error("wakeup_source: exist - %u\n", s_wakeup_src);
			return;
		}
		s_wakeup_src = wakeup_src;
	}
}

